package Demo2;

class Money{
    public double m=9.9;
}
public class Person implements Cloneable{
    public String name;
    public int age;
    public Money money=new Money();

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }
     protected Object clone() throws CloneNotSupportedException{
        return super.clone();
    }
}
